package com.dzqc.fly.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dzqc.fly.db.bo.StudentsYearMsgBo;
import com.dzqc.fly.db.bo.StudentsYearMsgDetailBo;
import com.dzqc.fly.db.dao.SecretaryQueryDao;
import com.dzqc.fly.db.dao.SecretaryStudentsDao;
import com.dzqc.fly.db.pojo.SecretaryStudentsPojo;
import com.dzqc.fly.db.pojo.StudentsLeavePojo;
import com.dzqc.fly.db.pojo.StudentsYearMsgDetailPojo;
import com.dzqc.fly.db.vo.SecretaryStudentDetailVo;
import com.dzqc.fly.service.SecretaryQueryService;
import com.dzqc.fly.service.SecretaryStudentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @author hlp
 */
@Service
public class SecretaryQueryServiceImpl extends ServiceImpl<SecretaryQueryDao, StudentsLeavePojo> implements SecretaryQueryService {
    @Autowired
    private SecretaryQueryDao secretaryQueryDao;

    @Override
    public Page<StudentsLeavePojo> searchStatusList(HashMap param) {
        Page<StudentsLeavePojo> page = new Page<>((Integer) param.get("current"),(Integer) param.get("size"));
        List<StudentsLeavePojo> pojoList = secretaryQueryDao.searchStudentsLeaveList(page,param);
        return page.setRecords(pojoList);
    }

}
